import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import { showModal, showToast } from './utils/message'
import api from './api'
import { storage } from '@/utils/storage';
import uView from 'uview-ui'
import './uni.scss';

Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$api = api
// 弹窗
Vue.prototype.$showModal = showModal
// Toast提示
Vue.prototype.$showToast = showToast
// 本地缓存
Vue.prototype.$storage = storage

App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
